<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      //向上取整
      console.log(Math.ceil(1.2))
      console.log(Math.ceil(1.4))
      console.log(Math.ceil(1.9))
      console.log('-------------------')
      //向下取整
      console.log(Math.floor(1.1))
      console.log(Math.floor(1.1))
      console.log(Math.floor(1.5))
      //圆周率
      console.log(Math.PI)
      //最大值
      console.log(Math.floor(1.1))
      console.log(Math.max(1, 2, 3, 6, 9))
      //最小值
      console.log(Math.min(1, 2, 3, 6, 9))
    </script>
  </body>
</html>
